package com.gome.boot.config.elasticsearch.cluster;

/**
 * 索引类型配置信息.
 *
 * @author baoxiufeng
 */
public class IndexTypeConfig {

    /**
     * 索引类型
     */
    private String indexType;
    /**
     * ID字段名
     */
    private String idFieldName;

    public IndexTypeConfig() {
    }

    public IndexTypeConfig(String indexType) {
        this(indexType, null);
    }

    public IndexTypeConfig(String indexType, String idFieldName) {
        this.indexType = indexType;
        this.idFieldName = idFieldName;
    }

    public String getIndexType() {
        return indexType;
    }

    public void setIndexType(String indexType) {
        this.indexType = indexType;
    }

    public String getIdFieldName() {
        return idFieldName;
    }

    public void setIdFieldName(String idFieldName) {
        this.idFieldName = idFieldName;
    }
}
